package com.antunnel.system.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * 用户
 * @author n.wang
 *
 */
@Entity
@Table(name="bc_userbase")
public class UserBase implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="id")
	private Integer id;
	
	@Column(name="usertype")
	private Integer usertype;//类型名称1会员2代理
	
	@Column(name="readme")
	private String readme;
	
	@Column(name="username")
	private String username ;//用户名
	
	@Column(name="email")
	private String email;//用户邮箱
	
	@Column(name="fundpassword")
	private String fundpassword;//资金账户密码
	
	@Column(name="password")
	private String password;
	
	@Column(name="nickname")
	private String nickname;//用户昵称
	
	@Column(name="address")
	private String address;
	
	@Column(name="addtime")
	private Date addtime;//注册时间
	
	@Column(name="lasttime")
	private Date lasttime;//最后登录时间
	
	@Column(name="lastip")
	private String lastip;//最后登录ip
	
	@Column(name="fatherid")
	private Integer fatherid;//上级代理名称
	
	@Column(name="maxbonus")
	private Double maxbonus;//最高奖金限制
	
	@Column(name="activetime")
	private Date activetime;//活跃时间，默认开始为第一次登录时间，出现充值提现后修改该时间，做为14天的禁用标记
	
	@Column(name="telnum")
	private String telnum;//用户电话
	
	@Column(name="qq")
	private String qq;//用户qq
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	public String getReadme() {
		return readme;
	}
	public void setReadme(String readme) {
		this.readme = readme;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Integer getUsertype() {
		return usertype;
	}
	public void setUsertype(Integer usertype) {
		this.usertype = usertype;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getFundpassword() {
		return fundpassword;
	}
	public void setFundpassword(String fundpassword) {
		this.fundpassword = fundpassword;
	}
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}
	public Date getLasttime() {
		return lasttime;
	}
	public void setLasttime(Date lasttime) {
		this.lasttime = lasttime;
	}
	public String getLastip() {
		return lastip;
	}
	public void setLastip(String lastip) {
		this.lastip = lastip;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Integer getFatherid() {
		return fatherid;
	}
	public void setFatherid(Integer fatherid) {
		this.fatherid = fatherid;
	}
	public Double getMaxbonus() {
		return maxbonus;
	}
	public void setMaxbonus(Double maxbonus) {
		this.maxbonus = maxbonus;
	}
	public Date getActivetime() {
		return activetime;
	}
	public void setActivetime(Date activetime) {
		this.activetime = activetime;
	}
	public String getTelnum() {
		return telnum;
	}
	public void setTelnum(String telnum) {
		this.telnum = telnum;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	
	
}
